home *** CD-ROM | disk | FTP | other *** search
- /*
- File: StdDisp.cpp
-
- Contains: xxx put contents here xxx
-
- Owned by: xxx put writers here xxx
-
- Copyright: © 1994 - 1995 by Apple Computer, Inc., all rights reserved.
-
- Change History (most recent first):
-
- <6> 8/3/95 RR #1257260: Collapse B classes. Remove
- somInit methods. Don't call IsInitialized
- or SubclassResponsibility
- <5> 6/15/95 RR #1254828/1255536 Added eventInfo to
- Dispatch()
- <4> 5/26/95 RR #1251403: Multithreading naming support
- <3> 4/13/95 RR # 1216618 Added ODVolatile
- <2> 4/7/95 RR #1216618 Added SOM_TRY etc.
- <1> 6/24/94 RR first checked in
-
- To Do:
- */
-
-
- /*
- * This file was generated by the SOM Compiler.
- * Generated using:
- * SOM Emitter emitxtm.dll: somc/smmain.c
- */
-
- #define ODStandardDispatchModule_Class_Source
- #define VARIABLE_MACROS
- #include <StdDisp.xih>
-
- #ifndef _STDDISPM_
- #include "StdDispM.h"
- #endif
-
- SOM_Scope void SOMLINK ODStandardDispatchModuleInitStandardDispatchModule(ODStandardDispatchModule *somSelf, Environment *ev,
- ODSession* session)
- {
- ODStandardDispatchModuleData *somThis = ODStandardDispatchModuleGetData(somSelf);
- ODStandardDispatchModuleMethodDebug("ODStandardDispatchModule","InitStandardDispatchModule");
-
- /* Moved from somInit. SOM itself sets fields to zero
- _fImplementation = kODNULL;
- */
-
- MacDispatchModule* module = kODNULL; ODVolatile(module);
-
- SOM_TRY
-
- module = new MacDispatchModule;
- module->InitMacDispatchModule(ev, session);
- _fImplementation = module;
-
- SOM_CATCH_ALL
-
- ODDeleteObject(module);
-
- SOM_ENDTRY
- }
-
- SOM_Scope void SOMLINK ODStandardDispatchModulesomUninit(ODStandardDispatchModule *somSelf)
- {
- ODStandardDispatchModuleData *somThis = ODStandardDispatchModuleGetData(somSelf);
- ODStandardDispatchModuleMethodDebug("ODStandardDispatchModule","somUninit");
-
- delete _fImplementation;
- parent_somUninit(somSelf);
- }
-
- SOM_Scope ODBoolean SOMLINK ODStandardDispatchModuleDispatch(ODStandardDispatchModule *somSelf, Environment *ev,
- ODEventData* event,
- ODEventInfo* eventInfo)
- {
- ODStandardDispatchModuleData *somThis = ODStandardDispatchModuleGetData(somSelf);
- ODStandardDispatchModuleMethodDebug("ODStandardDispatchModule","Dispatch");
-
- ODBoolean handled = kODFalse;
-
- SOM_TRY
-
- handled = _fImplementation->Dispatch(ev, event, eventInfo);
-
- SOM_CATCH_ALL
- SOM_ENDTRY
-
- return handled;
- }
-